package com.java.programmer.abstractfactory;

// 按两次 Shift 打开“随处搜索”对话框并输入 `show whitespaces`，
// 然后按 Enter 键。现在，您可以在代码中看到空格字符。
public class Main {
    public static void main(String[] args) {
        HUAWEIFactory huaweiFactory = new HUAWEIFactory();
        System.out.println(huaweiFactory.createComputer().showInfo());
        System.out.println(huaweiFactory.createPhone().showInfo());
        System.out.println(huaweiFactory.createPad().showInfo());

        AppleFactory appleFactory = new AppleFactory();
        System.out.println(appleFactory.createComputer().showInfo());
        System.out.println(appleFactory.createPhone().showInfo());
        System.out.println(appleFactory.createPad().showInfo());
    }
}